import React, { Component } from 'react';
import styles from './index.less';
import DataFlowGraph from './dataFlowGraph';
import dataFlowData from './dataFlow';

export default class DataFlow extends Component {
  constructor(props) {
    super(props);
    this.state = {
      //
    };
  }
  componentDidMount() {
    let data = dataFlowData.data;
    new DataFlowGraph({
      id: 'graphWraper',
      data: data,
      callBack: (code) => {
        // this.getTableDesc(code);
      },
    });
    // this.getData();
  }

  componentWillUnmount() {
    //
  }

  render() {
    return (
      <div className={styles.index}>
        <div className={styles.graphWraper} id="graphWraper">
          <div className="circleAnimate" id="circleAnimate"></div>
        </div>
      </div>
    );
  }
}
